<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>骡窝日报详情</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<link rel="stylesheet" href="/js/bootstrap/css/bootstrap.min.css">
		<script src="/js/jquery/jquery.min.js"></script>
		<script src="/js/bootstrap/js/bootstrap.js"></script>
		<link rel="stylesheet" href="/css/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="/css/reset.css">
		<link rel="stylesheet" href="/css/newsContent.css">
		<script src="/js/plugins/jrender/jrender.js"></script>
		<script src="/js/common.js"></script>
		
	</head>


		<body>

		<div class="search-head">
			<div class="row nav-search">
				<div class="col-2">
					<a href="index.html">
						<span><i class="fa fa-chevron-left fa-2x"></i></span>
					</a>
				</div>
			</div>
		</div>

		<h4>日报内容</h4>


		<div class="newsDetail">
			<div>
				<a href="javascript:history.go(-1);" style="position: absolute;top: 10px;left: 22px;">
					<span><i class="fa fa-chevron-left fa-2x" style="color: white;"></i></span>
				</a>
				<img render-src="coverUrl" width="20" size="20">

				<div class="detail">
					<h2 class="title" render-html="title"></h2>
					<div class="content" ><p render-html="subTitle"></p>
						<div class="content" render-html="content"></div>
					</div>
				</div>
			</div>

			<hr>

			<div class="container d-flex">
				<div class="p-2  flex-fill">
					<i class="fa fa-thumbs-o-up"  id="likeBtn"> </i>
				</div>
				<div class="p-2  flex-fill"><i class="fa  fa-commenting-o"  id="commentBtn"> </i>
				</div>
				<div class="p-2  flex-fill"><i class="fa fa-star-o" id="collectBtn"> </i>
				</div>
			</div>



		</div>






		<script>
            $(function () {
                //拿到当前日报的id
                var id = getParams().id;
                //发送ajax请求获取当前日报的内容信息
                $.get("/dailyDetails/"+id, function (data) {
                    console.log(data.content);
                    $(".newsDetail").renderValues(data)

                });
            });
		</script>
</body>


</html>